import { createRouter, createWebHistory } from 'vue-router'




const routes = [

  {
    path: '/',
    name: 'main_login',
    component: () => import('../views/login')
  },
  {
    path: '/manager',
    name: 'manager',
    component: () => import('../views/manager'),
    children:[
      {
        path: '/Course',
        name: 'Course',
        component: () => import('../views/manager/course')
      },{
        path: '/user',
        name: 'user',
        component: () => import('../views/manager/user')
      },{
        path: '/recharge',
        name: 'recharge',
        component: () => import('../views/manager/recharge')
      },
    ]
  },
  ,{
    path: '/register',
    name: 'register',
    component: () => import('../views/Register')
  },{
    path: '/login',
    name: 'login',
    component: () => import('../views/login')
  }

]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
